package com.live.stamp.web.sms.service;

import com.live.stamp.web.sms.service.model.SmsModel;
import com.live.stamp.web.sms.service.model.TSmsMessage;
import org.springframework.boot.container.core.common.BusinessException;

/**
 * @author cwd E-mail: wendong.cao@jsxfedu.com
 * @version 1
 * @date 2018/4/24 10:37
 */
public interface SmsService {

    /**
     * 发送消息
     * @param smsModel
     * @return
     * @throws BusinessException
     */
    void sendMessage(SmsModel smsModel) throws BusinessException;

    /**
     * 添加发送消息记录
     * @param tSmsMessage
     * @throws BusinessException
     */
    void addSmsMessage(TSmsMessage tSmsMessage) throws BusinessException;
}
